package homework.api01;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        System.out.println(str.startsWith("www"));
        System.out.println(str.endsWith("cn"));
    }
}
